package com.grad.why.studentsystem.service;

import com.grad.why.studentsystem.domain.Studentarrivedinfo;
import com.grad.why.studentsystem.domain.current.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentarrivedinfoService {
    Studentarrivedinfo selectStudentArrivedInfoByRecordIdAndSid(Long rId, Integer sid);

    int updateEntity(Studentarrivedinfo studentarrivedinfo);

    List<CurrentStudentArrivedInfo> getStudentArrivedInfoList(int offset, int limit, String search);

    long getStudentArrivedInfoListLength(String search);

    /**
     * 根据条件获取学生到课率信息
     * @param offset
     * @param limit
     * @param search
     * @return
     */
    List<CurrentStudentArrivedRecordeAnalyze> getCurrentStudentArrivedRecordAnalyzeList(int offset, int limit, String search);

    long getCurrentStudentArrivedRecordAnalyzeListLength(String search);

    List<CurrentClassArriveInfos> getCurrentClassArriveInfos(@Param("offset") int offset, @Param("limit") int limit, @Param("search") String search);

    long getCurrentClassArriveInfosLength(String search);

    List<CurrentClassArriveInfos> getAllCurrentClassArriveInfos();
}
